//搭建服务器

const express = require('express');

const app = express();

app.listen(3000,()=>{
    console.log("3000端口打开");
})

const getIndexRouter = require('./index.js');   //引入首页的路由模块儿

app.use(getIndexRouter);